home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 November / CPNL0711.ISO / admin / secure / Tor - Privoxy - Vidalia.exe / Privoxy / config.txt < prev    next >
Text File  |  2007-03-02  |  35KB  |  1,180 lines

  1. forward-socks4a / localhost:9050 .
  2. #        Sample Configuration File for Privoxy v3.0.6
  3. #
  4. #  $Id: config,v 1.56 2006/11/14 01:54:36 hal9 Exp $
  5. #
  6. #  Copyright (C) 2001-2006 Privoxy Developers http://privoxy.org
  7. #
  8. ####################################################################
  9. #                                                                  #
  10. #                      Table of Contents                           #
  11. #                                                                  #
  12. #        I. INTRODUCTION                                           #
  13. #       II. FORMAT OF THE CONFIGURATION FILE                       #
  14. #                                                                  #
  15. #        1. LOCAL SET-UP DOCUMENTATION                             #
  16. #        2. CONFIGURATION AND LOG FILE LOCATIONS                   #
  17. #        3. DEBUGGING                                              #
  18. #        4. ACCESS CONTROL AND SECURITY                            #
  19. #        5. FORWARDING                                             #
  20. #        6. WINDOWS GUI OPTIONS                                    #
  21. #                                                                  #
  22. ####################################################################
  23. #
  24. #
  25. #  I. INTRODUCTION
  26. #   ===============
  27. #
  28. #  This file holds the Privoxy configuration. If you modify this file,
  29. #  you will need to send a couple of requests (of any kind) to the
  30. #  proxy before any changes take effect.
  31. #
  32. #  When starting Privoxy on Unix systems, give the name of this file as
  33. #  an argument. On Windows systems, Privoxy will look for this file
  34. #  with the name 'config.txt' in the same directory where Privoxy
  35. #  is installed.
  36. #
  37. #
  38. #  II. FORMAT OF THE CONFIGURATION FILE
  39. #  ====================================
  40. #
  41. #  Configuration lines consist of an initial keyword followed by a
  42. #  list of values, all separated by whitespace (any number of spaces
  43. #  or tabs). For example,
  44. #
  45. #  actionsfile default.action
  46. #
  47. #  Indicates that the actionsfile is named 'default.action'.
  48. #
  49. #  The '#' indicates a comment. Any part of a line following a '#'
  50. #  is ignored, except if the '#' is preceded by a '\'.
  51. #
  52. #  Thus, by placing a # at the start of an existing configuration line,
  53. #  you can make it a comment and it will be treated as if it weren't
  54. #  there. This is called "commenting out" an option and can be useful.
  55. #
  56. #  Note that commenting out and option and leaving it at its default
  57. #  are two completely different things! Most options behave very
  58. #  differently when unset.  See the the "Effect if unset" explanation
  59. #  in each option's description for details.
  60. #
  61. #  Long lines can be continued on the next line by using a `\' as the
  62. #  last character.
  63. #
  64.  
  65. #
  66. #  1. LOCAL SET-UP DOCUMENTATION
  67. #  =============================
  68. #
  69. #  If you intend to operate Privoxy for more users than just yourself,
  70. #  it might be a good idea to let them know how to reach you, what
  71. #  you block and why you do that, your policies, etc.
  72. #
  73.  
  74. #
  75. #  1.1. user-manual
  76. #  ================
  77. #
  78. #  Specifies:
  79. #
  80. #      Location of the Privoxy User Manual.
  81. #
  82. #  Type of value:
  83. #
  84. #      A fully qualified URI
  85. #
  86. #  Default value:
  87. #
  88. #      Unset
  89. #
  90. #  Effect if unset:
  91. #
  92. #      http://www.privoxy.org/version/user-manual/ will be used,
  93. #      where version is the Privoxy version.
  94. #
  95. #  Notes:
  96. #
  97. #      The User Manual URI is the single best source of information on
  98. #      Privoxy, and is used for help links from some of the internal
  99. #      CGI pages. The manual itself is normally packaged with the
  100. #      binary distributions, so you probably want to set this to
  101. #      a locally installed copy. For multi-user setups, you could
  102. #      provide a copy on a local webserver for all your users and use
  103. #      the corresponding URL here.
  104. #
  105. #      Examples:
  106. #
  107. #      The best all purpose solution is simply to put the full local
  108. #      PATH to where the User Manual is located:
  109. #
  110. #        user-manual  /usr/share/doc/privoxy/user-manual
  111. #
  112. #      The User Manual is then available to anyone with
  113. #      access to the proxy, by following the built-in URL:
  114. #      http://config.privoxy.org/user-manual/ (or the shortcut:
  115. #      http://p.p/user-manual/).
  116. #
  117. #      If the documentation is not on the local system, it can be
  118. #      accessed from a remote server, as:
  119. #
  120. #        user-manual  http://example.com/privoxy/user-manual/
  121. #
  122. #      WARNING!!!
  123. #
  124. #          If set, this option should be the first option in the config
  125. #          file, because it is used while the config file is being read.
  126. #
  127. #user-manual http://www.privoxy.org/user-manual/
  128.  
  129. #
  130. #  1.2. trust-info-url
  131. #  ===================
  132. #
  133. #  Specifies:
  134. #
  135. #      A URL to be displayed in the error page that users will see if
  136. #      access to an untrusted page is denied.
  137. #
  138. #  Type of value:
  139. #
  140. #      URL
  141. #
  142. #  Default value:
  143. #
  144. #      Two example URL are provided
  145. #
  146. #  Effect if unset:
  147. #
  148. #      No links are displayed on the "untrusted" error page.
  149. #
  150. #  Notes:
  151. #
  152. #      The value of this option only matters if the experimental trust
  153. #      mechanism has been activated. (See trustfile above.)
  154. #
  155. #      If you use the trust mechanism, it is a good idea to write
  156. #      up some on-line documentation about your trust policy and to
  157. #      specify the URL(s) here. Use multiple times for multiple URLs.
  158. #
  159. #      The URL(s) should be added to the trustfile as well, so users
  160. #      don't end up locked out from the information on why they were
  161. #      locked out in the first place!
  162. #
  163. trust-info-url  http://www.example.com/why_we_block.html
  164. trust-info-url  http://www.example.com/what_we_allow.html
  165.  
  166. #
  167. #  1.3. admin-address
  168. #  ==================
  169. #
  170. #  Specifies:
  171. #
  172. #      An email address to reach the proxy administrator.
  173. #
  174. #  Type of value:
  175. #
  176. #      Email address
  177. #
  178. #  Default value:
  179. #
  180. #      Unset
  181. #
  182. #  Effect if unset:
  183. #
  184. #      No email address is displayed on error pages and the CGI user
  185. #      interface.
  186. #
  187. #  Notes:
  188. #
  189. #      If both admin-address and proxy-info-url are unset, the whole
  190. #      "Local Privoxy Support" box on all generated pages will not
  191. #      be shown.
  192. #
  193. #admin-address privoxy-admin@example.com
  194.  
  195. #
  196. #  1.4. proxy-info-url
  197. #  ===================
  198. #
  199. #  Specifies:
  200. #
  201. #      A URL to documentation about the local Privoxy setup,
  202. #      configuration or policies.
  203. #
  204. #  Type of value:
  205. #
  206. #      URL
  207. #
  208. #  Default value:
  209. #
  210. #      Unset
  211. #
  212. #  Effect if unset:
  213. #
  214. #      No link to local documentation is displayed on error pages and
  215. #      the CGI user interface.
  216. #
  217. #  Notes:
  218. #
  219. #      If both admin-address and proxy-info-url are unset, the whole
  220. #      "Local Privoxy Support" box on all generated pages will not
  221. #      be shown.
  222. #
  223. #      This URL shouldn't be blocked ;-)
  224. #
  225. #proxy-info-url http://www.example.com/proxy-service.html
  226.  
  227. #
  228. #  2. CONFIGURATION AND LOG FILE LOCATIONS
  229. #  =======================================
  230. #
  231. #  Privoxy can (and normally does) use a number of other files for
  232. #  additional configuration, help and logging. This section of the
  233. #  configuration file tells Privoxy where to find those other files.
  234. #
  235. #  The user running Privoxy, must have read permission for all
  236. #  configuration files, and write permission to any files that would
  237. #  be modified, such as log files and actions files.
  238. #
  239.  
  240. #
  241. #  2.1. confdir
  242. #  ============
  243. #
  244. #  Specifies:
  245. #
  246. #      The directory where the other configuration files are located
  247. #
  248. #  Type of value:
  249. #
  250. #      Path name
  251. #
  252. #  Default value:
  253. #
  254. #      /etc/privoxy (Unix) or Privoxy installation dir (Windows)
  255. #
  256. #  Effect if unset:
  257. #
  258. #      Mandatory
  259. #
  260. #  Notes:
  261. #
  262. #      No trailing "/", please
  263. #
  264. #      When development goes modular and multi-user, the blocker,
  265. #      filter, and per-user config will be stored in subdirectories of
  266. #      "confdir". For now, the configuration directory structure is
  267. #      flat, except for confdir/templates, where the HTML templates
  268. #      for CGI output reside (e.g. Privoxy's 404 error page).
  269. #
  270. confdir .
  271.  
  272. #
  273. #  2.2. logdir
  274. #  ===========
  275. #
  276. #  Specifies:
  277. #
  278. #      The directory where all logging takes place (i.e. where logfile
  279. #      and jarfile are located)
  280. #
  281. #  Type of value:
  282. #
  283. #      Path name
  284. #
  285. #  Default value:
  286. #
  287. #      /var/log/privoxy (Unix) or Privoxy installation dir (Windows)
  288. #
  289. #  Effect if unset:
  290. #
  291. #      Mandatory
  292. #
  293. #  Notes:
  294. #
  295. #      No trailing "/", please
  296. #
  297. logdir .
  298.  
  299. #
  300. #  2.3. actionsfile
  301. #  ================
  302. #
  303. #  Specifies:
  304. #
  305. #      The actions file(s) to use
  306. #
  307. #  Type of value:
  308. #
  309. #      File name, relative to confdir, without the .action suffix
  310. #
  311. #  Default values:
  312. #
  313. #        standard     # Internal purposes, no editing recommended
  314. #
  315. #        default      # Main actions file
  316. #
  317. #        user         # User customizations
  318. #
  319. #  Effect if unset:
  320. #
  321. #      No actions are taken at all. Simple neutral proxying.
  322. #
  323. #  Notes:
  324. #
  325. #      Multiple actionsfile lines are permitted, and are in fact
  326. #      recommended!
  327. #
  328. #      The default values include standard.action, which is used
  329. #      for internal purposes and should be loaded, default.action,
  330. #      which is the "main" actions file maintained by the developers,
  331. #      and user.action, where you can make your personal additions.
  332. #
  333. #      Actions files are where all the per site and per URL
  334. #      configuration is done for ad blocking, cookie management,
  335. #      privacy considerations, etc. There is no point in using Privoxy
  336. #      without at least one actions file.
  337. #
  338. actionsfile standard  # Internal purpose, recommended
  339. actionsfile default   # Main actions file
  340. actionsfile user      # User customizations
  341.  
  342. #
  343. #  2.4. filterfile
  344. #  ===============
  345. #
  346. #  Specifies:
  347. #
  348. #      The filter file(s) to use
  349. #
  350. #  Type of value:
  351. #
  352. #      File name, relative to confdir
  353. #
  354. #  Default value:
  355. #
  356. #      default.filter (Unix) or default.filter.txt (Windows)
  357. #
  358. #  Effect if unset:
  359. #
  360. #      No textual content filtering takes place, i.e. all +filter{name}
  361. #      actions in the actions files are turned neutral.
  362. #
  363. #  Notes:
  364. #
  365. #      Multiple filterfile lines are permitted.
  366. #
  367. #      The filter files contain content modification rules that use
  368. #      regular expressions. These rules permit powerful changes on
  369. #      the content of Web pages, and optionally the headers as well,
  370. #      e.g., you could disable your favorite JavaScript annoyances,
  371. #      re-write the actual displayed text, or just have some fun
  372. #      playing buzzword bingo with web pages.
  373. #
  374. #      The +filter{name} actions rely on the relevant filter (name)
  375. #      to be defined in a filter file!
  376. #
  377. #      A pre-defined filter file called default.filter that contains a
  378. #      number of useful filters for common problems is included in the
  379. #      distribution. See the section on the filter action for a list.
  380. #
  381. #      It is recommended to place any locally adapted filters into a
  382. #      separate file, such as user.filter.
  383. #
  384. filterfile default.filter
  385. #filterfile user.filter      # User customizations
  386.  
  387. #
  388. #  2.5. logfile
  389. #  ============
  390. #
  391. #  Specifies:
  392. #
  393. #      The log file to use
  394. #
  395. #  Type of value:
  396. #
  397. #      File name, relative to logdir
  398. #
  399. #  Default value:
  400. #
  401. #      logfile (Unix) or privoxy.log (Windows)
  402. #
  403. #  Effect if unset:
  404. #
  405. #      No log file is used, all log messages go to the console (STDERR).
  406. #
  407. #  Notes:
  408. #
  409. #      The logfile is where all logging and error messages are
  410. #      written. The level of detail and number of messages are set with
  411. #      the debug option (see below).  The logfile can be useful for
  412. #      tracking down a problem with Privoxy (e.g., it's not blocking
  413. #      an ad you think it should block) but in most cases you probably
  414. #      will never look at it.
  415. #
  416. #      Your logfile will grow indefinitely, and you will probably
  417. #      want to periodically remove it. On Unix systems, you can do
  418. #      this with a cron job (see "man cron"). For Red Hat, a logrotate
  419. #      script has been included.
  420. #
  421. #      On SuSE Linux systems, you can place a line like
  422. #      "/var/log/privoxy.* +1024k 644 nobody.nogroup" in /etc/logfiles,
  423. #      with the effect that cron.daily will automatically archive,
  424. #      gzip, and empty the log, when it exceeds 1M size.
  425. #
  426. #      Any log files must be writable by whatever user Privoxy is
  427. #      being run as (default on UNIX, user id is "privoxy").
  428. #
  429. # logfile privoxy.log
  430.  
  431. #
  432. #  2.6. jarfile
  433. #  ============
  434. #
  435. #  Specifies:
  436. #
  437. #      The file to store intercepted cookies in
  438. #
  439. #  Type of value:
  440. #
  441. #      File name, relative to logdir
  442. #
  443. #  Default value:
  444. #
  445. #      Unset (commented out). When activated: jarfile (Unix) or
  446. #      privoxy.jar (Windows)
  447. #
  448. #  Effect if unset:
  449. #
  450. #      Intercepted cookies are not stored in a dedicated log file.
  451. #
  452. #  Notes:
  453. #
  454. #      The jarfile may grow to ridiculous sizes over time.
  455. #
  456. #      If debug 8 (show header parsing) is enabled, cookies are written
  457. #      to the logfile with the rest of the headers.
  458. #
  459. #jarfile jar.log
  460.  
  461. #
  462. #  2.7. trustfile
  463. #  ==============
  464. #
  465. #  Specifies:
  466. #
  467. #      The trust file to use
  468. #
  469. #  Type of value:
  470. #
  471. #      File name, relative to confdir
  472. #
  473. #  Default value:
  474. #
  475. #      Unset (commented out). When activated: trust (Unix) or trust.txt
  476. #      (Windows)
  477. #
  478. #  Effect if unset:
  479. #
  480. #      The entire trust mechanism is turned off.
  481. #
  482. #  Notes:
  483. #
  484. #      The trust mechanism is an experimental feature for building
  485. #      white-lists and should be used with care. It is NOT recommended
  486. #      for the casual user.
  487. #
  488. #      If you specify a trust file, Privoxy will only allow access to
  489. #      sites that are specified in the trustfile. Sites can be listed
  490. #      in one of two ways:
  491. #
  492. #      Prepending a ~ character limits access to this site only (and
  493. #      any sub-paths within this site), e.g. ~www.example.com.
  494. #
  495. #      Or, you can designate sites as trusted referrers, by prepending
  496. #      the name with a + character. The effect is that access to
  497. #      untrusted sites will be granted -- but only if a link from this
  498. #      trusted referrer was used. The link target will then be added
  499. #      to the "trustfile" so that future, direct accesses will be
  500. #      granted. Sites added via this mechanism do not become trusted
  501. #      referrers themselves (i.e. they are added with a ~ designation).
  502. #
  503. #      If you use the + operator in the trust file, it may grow
  504. #      considerably over time.
  505. #
  506. #      It is recommended that Privoxy be compiled with the
  507. #      --disable-force, --disable-toggle and --disable-editor options,
  508. #      if this feature is to be used.
  509. #
  510. #      Possible applications include limiting Internet access for
  511. #      children.
  512. #
  513. #trustfile trust
  514.  
  515. #
  516. #  3. DEBUGGING
  517. #  ============
  518. #
  519. #  These options are mainly useful when tracing a problem. Note that
  520. #  you might also want to invoke Privoxy with the --no-daemon command
  521. #  line option when debugging.
  522. #
  523.  
  524. #
  525. #  3.1. debug
  526. #  ==========
  527. #
  528. #  Specifies:
  529. #
  530. #      Key values that determine what information gets logged to
  531. #      the logfile.
  532. #
  533. #  Type of value:
  534. #
  535. #      Integer values
  536. #
  537. #  Default value:
  538. #
  539. #      12289 (i.e.: URLs plus informational and warning messages)
  540. #
  541. #  Effect if unset:
  542. #
  543. #      Nothing gets logged.
  544. #
  545. #  Notes:
  546. #
  547. #      The available debug levels are:
  548. #  
  549. #          debug         1 # show each GET/POST/CONNECT request 
  550. #          debug         2 # show each connection status 
  551. #          debug         4 # show I/O status 
  552. #          debug         8 # show header parsing 
  553. #          debug        16 # log all data into the logfile 
  554. #          debug        32 # debug force feature 
  555. #          debug        64 # debug regular expression filter
  556. #          debug       128 # debug fast redirects 
  557. #          debug       256 # debug GIF de-animation 
  558. #          debug       512 # Common Log Format
  559. #          debug      1024 # debug kill pop-ups 
  560. #          debug      2048 # CGI user interface 
  561. #          debug      4096 # Startup banner and warnings.
  562. #          debug      8192 # Non-fatal errors
  563. #
  564. #      To select multiple debug levels, you can either add them or
  565. #      use multiple debug lines.
  566. #
  567. #      A debug level of 1 is informative because it will show you each
  568. #      request as it happens. 1, 4096 and 8192 are highly recommended
  569. #      so that you will notice when things go wrong. The other levels
  570. #      are probably only of interest if you are hunting down a specific
  571. #      problem. They can produce a hell of an output (especially 16).
  572. #
  573. #      The reporting of fatal errors (i.e. ones which crash Privoxy)
  574. #      is always on and cannot be disabled.
  575. #
  576. #      If you want to use CLF (Common Log Format), you should set
  577. #      "debug 512" ONLY and not enable anything else.
  578. #
  579. debug   1    # show each GET/POST/CONNECT request
  580. debug   4096 # Startup banner and warnings
  581. debug   8192 # Errors - *we highly recommended enabling this*
  582.  
  583. #
  584. #  3.2. single-threaded
  585. #  ====================
  586. #
  587. #  Specifies:
  588. #
  589. #      Whether to run only one server thread
  590. #
  591. #  Type of value:
  592. #
  593. #      None
  594. #
  595. #  Default value:
  596. #
  597. #      Unset
  598. #
  599. #  Effect if unset:
  600. #
  601. #      Multi-threaded (or, where unavailable: forked) operation,
  602. #      i.e. the ability to serve multiple requests simultaneously.
  603. #
  604. #  Notes:
  605. #
  606. #      This option is only there for debug purposes and you should
  607. #      never need to use it. It will drastically reduce performance.
  608. #
  609. #single-threaded
  610.  
  611. #
  612. #  4. ACCESS CONTROL AND SECURITY
  613. #  ==============================
  614. #
  615. #  This section of the config file controls the security-relevant
  616. #  aspects of Privoxy's configuration.
  617. #
  618.  
  619. #
  620. #  4.1. listen-address
  621. #  ===================
  622. #
  623. #  Specifies:
  624. #
  625. #      The IP address and TCP port on which Privoxy will listen for
  626. #      client requests.
  627. #
  628. #  Type of value:
  629. #
  630. #      [IP-Address]:Port
  631. #
  632. #  Default value:
  633. #
  634. #      127.0.0.1:8118
  635. #
  636. #  Effect if unset:
  637. #
  638. #      Bind to 127.0.0.1 (localhost), port 8118. This is suitable and
  639. #      recommended for home users who run Privoxy on the same machine
  640. #      as their browser.
  641. #
  642. #  Notes:
  643. #
  644. #      You will need to configure your browser(s) to this proxy address
  645. #      and port.
  646. #
  647. #      If you already have another service running on port 8118, or
  648. #      if you want to serve requests from other machines (e.g. on your
  649. #      local network) as well, you will need to override the default.
  650. #
  651. #      If you leave out the IP address, Privoxy will bind to all
  652. #      interfaces (addresses) on your machine and may become reachable
  653. #      from the Internet. In that case, consider using access control
  654. #      lists (ACL's, see below), and/or a firewall.
  655. #
  656. #      If you open Privoxy to untrusted users, you will also want
  657. #      to turn off the enable-edit-actions and enable-remote-toggle
  658. #      options!
  659. #
  660. #  Example:
  661. #
  662. #      Suppose you are running Privoxy on a machine which has the
  663. #      address 192.168.0.1 on your local private network (192.168.0.0)
  664. #      and has another outside connection with a different address. You
  665. #      want it to serve requests from inside only:
  666. #
  667. #        listen-address  192.168.0.1:8118
  668. #
  669. listen-address  127.0.0.1:8118
  670.  
  671. #
  672. #  4.2. toggle
  673. #  ===========
  674. #
  675. #  Specifies:
  676. #
  677. #      Initial state of "toggle" status
  678. #
  679. #  Type of value:
  680. #
  681. #      1 or 0
  682. #
  683. #  Default value:
  684. #
  685. #      1
  686. #
  687. #  Effect if unset:
  688. #
  689. #      Act as if toggled on
  690. #
  691. #  Notes:
  692. #
  693. #      If set to 0, Privoxy will start in "toggled off" mode,
  694. #      i.e. behave like a normal, content-neutral proxy where all ad
  695. #      blocking, filtering, etc are disabled. See enable-remote-toggle
  696. #      below. This is not really useful anymore, since toggling is
  697. #      much easier via the web interface than via editing the conf file.
  698. #
  699. #      The windows version will only display the toggle icon in the
  700. #      system tray if this option is present.
  701. #
  702. toggle  1
  703.  
  704. #
  705. #  4.3. enable-remote-toggle
  706. #  =========================
  707. #
  708. #  Specifies:
  709. #
  710. #      Whether or not the web-based toggle feature may be used
  711. #
  712. #  Type of value:
  713. #
  714. #      0 or 1
  715. #
  716. #  Default value:
  717. #
  718. #      1
  719. #
  720. #  Effect if unset:
  721. #
  722. #      The web-based toggle feature is disabled.
  723. #
  724. #  Notes:
  725. #
  726. #      When toggled off, Privoxy acts like a normal, content-neutral
  727. #      proxy, i.e.  it acts as if none of the actions applied to
  728. #      any URL.
  729. #
  730. #      For the time being, access to the toggle feature can not be
  731. #      controlled separately by "ACLs" or HTTP authentication, so that
  732. #      everybody who can access Privoxy (see "ACLs" and listen-address
  733. #      above) can toggle it for all users. So this option is not
  734. #      recommended for multi-user environments with untrusted users.
  735. #
  736. #      Note that you must have compiled Privoxy with support for this
  737. #      feature, otherwise this option has no effect.
  738. #
  739. enable-remote-toggle  1
  740.  
  741. #
  742. #  4.4. enable-remote-http-toggle
  743. #  ==============================
  744. #
  745. #  Specifies:
  746. #
  747. #      Whether or not Privoxy recognizes special HTTP headers to change
  748. #      its behaviour.
  749. #
  750. #  Type of value:
  751. #
  752. #      0 or 1
  753. #
  754. #  Default value:
  755. #
  756. #      1
  757. #
  758. #  Effect if unset:
  759. #
  760. #      Privoxy ignores special HTTP headers.
  761. #
  762. #  Notes:
  763. #
  764. #      When toggled on, the client can change Privoxy's behaviour by
  765. #      setting special HTTP headers. Currently the only supported
  766. #      special header is "X-Filter: No", to disable filtering for
  767. #      the ongoing request, even if it is enabled in one of the
  768. #      action files.
  769. #
  770. #      If you are using Privoxy in a multi-user environment or with
  771. #      untrustworthy clients and want to enforce filtering, you will
  772. #      have to disable this option, otherwise you can ignore it.
  773. #
  774. enable-remote-http-toggle  1
  775.  
  776. #
  777. #  4.5. enable-edit-actions
  778. #  ========================
  779. #
  780. #  Specifies:
  781. #
  782. #      Whether or not the web-based actions file editor may be used
  783. #
  784. #  Type of value:
  785. #
  786. #      0 or 1
  787. #
  788. #  Default value:
  789. #
  790. #      1
  791. #
  792. #  Effect if unset:
  793. #
  794. #      The web-based actions file editor is disabled.
  795. #
  796. #  Notes:
  797. #
  798. #      For the time being, access to the editor can not be controlled
  799. #      separately by "ACLs" or HTTP authentication, so that everybody
  800. #      who can access Privoxy (see "ACLs" and listen-address above)
  801. #      can modify its configuration for all users. So this option is
  802. #      not recommended for multi-user environments with untrusted users.
  803. #
  804. #      Note that you must have compiled Privoxy with support for this
  805. #      feature, otherwise this option has no effect.
  806. #
  807. enable-edit-actions 1
  808.  
  809. #
  810. #  4.6. ACLs: permit-access and deny-access
  811. #  ========================================
  812. #
  813. #  Specifies:
  814. #
  815. #      Who can access what.
  816. #
  817. #  Type of value:
  818. #
  819. #      src_addr[/src_masklen] [dst_addr[/dst_masklen]]
  820. #
  821. #      Where src_addr and dst_addr are IP addresses in dotted decimal
  822. #      notation or valid DNS names, and src_masklen and dst_masklen are
  823. #      subnet masks in CIDR notation, i.e. integer values from 2 to 30
  824. #      representing the length (in bits) of the network address. The
  825. #      masks and the whole destination part are optional.
  826. #
  827. #  Default value:
  828. #
  829. #      Unset
  830. #
  831. #  Effect if unset:
  832. #
  833. #      Don't restrict access further than implied by listen-address
  834. #
  835. #  Notes:
  836. #
  837. #      Access controls are included at the request of ISPs and systems
  838. #      administrators, and are not usually needed by individual
  839. #      users. For a typical home user, it will normally suffice to
  840. #      ensure that Privoxy only listens on the localhost (127.0.0.1)
  841. #      or internal (home) network address by means of the listen-address
  842. #      option.
  843. #
  844. #      Please see the warnings in the FAQ that this proxy is not
  845. #      intended to be a substitute for a firewall or to encourage
  846. #      anyone to defer addressing basic security weaknesses.
  847. #
  848. #      Multiple ACL lines are OK. If any ACLs are specified, then
  849. #      the Privoxy talks only to IP addresses that match at least one
  850. #      permit-access line and don't match any subsequent deny-access
  851. #      line. In other words, the last match wins, with the default
  852. #      being deny-access.
  853. #
  854. #      If Privoxy is using a forwarder (see forward below) for a
  855. #      particular destination URL, the dst_addr that is examined is
  856. #      the address of the forwarder and NOT the address of the ultimate
  857. #      target. This is necessary because it may be impossible for the
  858. #      local Privoxy to determine the IP address of the ultimate target
  859. #      (that's often what gateways are used for).
  860. #
  861. #      You should prefer using IP addresses over DNS names, because
  862. #      the address lookups take time. All DNS names must resolve! You
  863. #      can not use domain patterns like "*.org" or partial domain
  864. #      names. If a DNS name resolves to multiple IP addresses, only
  865. #      the first one is used.
  866. #
  867. #      Denying access to particular sites by ACL may have undesired
  868. #      side effects if the site in question is hosted on a machine
  869. #      which also hosts other sites.
  870. #
  871. #  Examples:
  872. #
  873. #      Explicitly define the default behavior if no ACL and
  874. #      listen-address are set: "localhost" is OK. The absence of a
  875. #      dst_addr implies that all destination addresses are OK:
  876. #
  877. #        permit-access  localhost
  878. #
  879. #      Allow any host on the same class C subnet as www.privoxy.org
  880. #      access to nothing but www.example.com:
  881. #
  882. #        permit-access  www.privoxy.org/24   www.example.com/32
  883. #
  884. #      Allow access from any host on the 26-bit subnet 192.168.45.64
  885. #      to anywhere, with the exception that 192.168.45.73 may not
  886. #      access www.dirty-stuff.example.com:
  887. #
  888. #        permit-access  192.168.45.64/26 
  889. #        deny-access    192.168.45.73     www.dirty-stuff.example.com
  890. #
  891.  
  892. #
  893. #  4.7. buffer-limit
  894. #  =================
  895. #
  896. #  Specifies:
  897. #
  898. #      Maximum size of the buffer for content filtering.
  899. #
  900. #  Type of value:
  901. #
  902. #      Size in Kbytes
  903. #
  904. #  Default value:
  905. #
  906. #      4096
  907. #
  908. #  Effect if unset:
  909. #
  910. #      Use a 4MB (4096 KB) limit.
  911. #
  912. #  Notes:
  913. #
  914. #      For content filtering, i.e. the +filter and +deanimate-gif
  915. #      actions, it is necessary that Privoxy buffers the entire document
  916. #      body. This can be potentially dangerous, since a server could
  917. #      just keep sending data indefinitely and wait for your RAM to
  918. #      exhaust -- with nasty consequences.  Hence this option.
  919. #
  920. #      When a document buffer size reaches the buffer-limit, it is
  921. #      flushed to the client unfiltered and no further attempt to filter
  922. #      the rest of the document is made. Remember that there may be
  923. #      multiple threads running, which might require up to buffer-limit
  924. #      Kbytes each, unless you have enabled "single-threaded" above.
  925. #
  926. buffer-limit 4096
  927.  
  928. #
  929. #  5. FORWARDING
  930. #  =============
  931. #
  932. #  This feature allows routing of HTTP requests through a chain
  933. #  of multiple proxies. It can be used to better protect privacy
  934. #  and confidentiality when accessing specific domains by routing
  935. #  requests to those domains through an anonymous public proxy.
  936. #  Or to use a caching proxy to speed up browsing. Or chaining to 
  937. #  a parent proxy may be necessary because the machine that Privoxy 
  938. #  runs on has no direct Internet access.
  939. #
  940. #  Also specified here are SOCKS proxies. Privoxy supports the SOCKS
  941. #  4 and SOCKS 4A protocols.
  942. #
  943.  
  944. #
  945. #  5.1. forward
  946. #  ============
  947. #
  948. #  Specifies:
  949. #
  950. #      To which parent HTTP proxy specific requests should be routed.
  951. #
  952. #  Type of value:
  953. #
  954. #      target_pattern http_parent[:port]
  955. #
  956. #      where target_pattern is a URL pattern that specifies to which
  957. #      requests (i.e. URLs) this forward rule shall apply. Use /
  958. #      to denote "all URLs".  http_parent[:port] is the DNS name or
  959. #      IP address of the parent HTTP proxy through which the requests
  960. #      should be forwarded, optionally followed by its listening port
  961. #      (default: 8080). Use a single dot (.) to denote "no forwarding".
  962. #
  963. #  Default value:
  964. #
  965. #      Unset
  966. #
  967. #  Effect if unset:
  968. #
  969. #      Don't use parent HTTP proxies.
  970. #
  971. #  Notes:
  972. #
  973. #      If http_parent is ".", then requests are not forwarded to
  974. #      another HTTP proxy but are made directly to the web servers.
  975. #
  976. #      Multiple lines are OK, they are checked in sequence, and the
  977. #      last match wins.
  978. #
  979. #  Examples:
  980. #
  981. #      Everything goes to an example anonymizing proxy, except SSL on
  982. #      port 443 (which it doesn't handle):
  983. #
  984. #        forward   /      anon-proxy.example.org:8080 
  985. #        forward   :443   .
  986. #
  987. #      Everything goes to our example ISP's caching proxy, except for
  988. #      requests to that ISP's sites:
  989. #
  990. #        forward   /                  caching-proxy.example-isp.net:8000
  991. #        forward   .example-isp.net   .
  992. #
  993.  
  994. #
  995. #  5.2. forward-socks4 and forward-socks4a
  996. #  =======================================
  997. #
  998. #  Specifies:
  999. #
  1000. #      Through which SOCKS proxy (and to which parent HTTP proxy)
  1001. #      specific requests should be routed.
  1002. #
  1003. #  Type of value:
  1004. #
  1005. #      target_pattern socks_proxy[:port] http_parent[:port]
  1006. #
  1007. #      where target_pattern is a URL pattern that specifies to which
  1008. #      requests (i.e. URLs) this forward rule shall apply. Use / to
  1009. #      denote "all URLs".  http_parent and socks_proxy are IP addresses
  1010. #      in dotted decimal notation or valid DNS names (http_parent may
  1011. #      be "." to denote "no HTTP forwarding"), and the optional port
  1012. #      parameters are TCP ports, i.e. integer values from 1 to 64535
  1013. #
  1014. #  Default value:
  1015. #
  1016. #      Unset
  1017. #
  1018. #  Effect if unset:
  1019. #
  1020. #      Don't use SOCKS proxies.
  1021. #
  1022. #  Notes:
  1023. #
  1024. #      Multiple lines are OK, they are checked in sequence, and the
  1025. #      last match wins.
  1026. #
  1027. #      The difference between forward-socks4 and forward-socks4a
  1028. #      is that in the SOCKS 4A protocol, the DNS resolution of the
  1029. #      target hostname happens on the SOCKS server, while in SOCKS 4
  1030. #      it happens locally.
  1031. #
  1032. #      If http_parent is ".", then requests are not forwarded to another
  1033. #      HTTP proxy but are made (HTTP-wise) directly to the web servers,
  1034. #      albeit through a SOCKS proxy.
  1035. #
  1036. #  Examples:
  1037. #
  1038. #      From the company example.com, direct connections are made to all
  1039. #      "internal" domains, but everything outbound goes through their
  1040. #      ISP's proxy by way of example.com's corporate SOCKS 4A gateway
  1041. #      to the Internet.
  1042. #
  1043. #        forward-socks4a   /              socks-gw.example.com:1080   www-cache.example-isp.net:8080 
  1044. #        forward           .example.com   .
  1045. #  
  1046. #      A rule that uses a SOCKS 4 gateway for all destinations but no
  1047. #      HTTP parent looks like this:
  1048. #  
  1049. #        forward-socks4   /               socks-gw.example.com:1080  .
  1050. #
  1051. #      To chain Privoxy and Tor, both running on the same system,
  1052. #      you should use the rule:
  1053. #  
  1054. #        forward-socks4a             /     127.0.0.1:9050 .
  1055. #
  1056. #      The public Tor network can't be used to reach your local network,
  1057. #      therefore it's a good idea to make some exceptions:
  1058. #
  1059. #        forward         192.168.*.*/     .
  1060. #        forward            10.*.*.*/     .
  1061. #        forward           127.*.*.*/     .
  1062. #
  1063. #      Unencrypted connections to systems in these address ranges will
  1064. #      be as (un)secure as the local network is, but the alternative is
  1065. #      that you can't reach the network at all.
  1066. #
  1067. #      If you also want to be able to reach servers in your local
  1068. #      network by using their names, you will need additional
  1069. #      exceptions that look like this:
  1070. #
  1071. #        forward           localhost/     .
  1072. #
  1073.  
  1074. #
  1075. #  5.3. forwarded-connect-retries
  1076. #  ==============================
  1077. #
  1078. #  Specifies:
  1079. #
  1080. #      How often Privoxy retries if a forwarded connection request
  1081. #      fails.
  1082. #
  1083. #  Type of value:
  1084. #
  1085. #      Number of retries.
  1086. #
  1087. #  Default value:
  1088. #
  1089. #      0
  1090. #
  1091. #  Effect if unset:
  1092. #
  1093. #      Forwarded connections are treated like direct connections and
  1094. #      no retry attempts are made.
  1095. #
  1096. #  Notes:
  1097. #
  1098. #      forwarded-connect-retries is mainly interesting for socks4a
  1099. #      connections, where Privoxy can't detect why the connections
  1100. #      failed. The connection might have failed because of a DNS timeout
  1101. #      in which case a retry makes sense, but it might also have failed
  1102. #      because the server doesn't exist or isn't reachable. In this
  1103. #      case the retry will just delay the appearance of Privoxy's
  1104. #      error message.
  1105. #
  1106. #      Only use this option, if you are getting many forwarding related
  1107. #      error messages, that go away when you try again manually. Start
  1108. #      with a small value and check Privoxy's logfile from time to time,
  1109. #      to see how many retries are usually needed.
  1110. #
  1111. #  Examples:
  1112. #
  1113. #      forwarded-connect-retries 1
  1114. #
  1115. forwarded-connect-retries  0
  1116.  
  1117. #
  1118. #  6. WINDOWS GUI OPTIONS
  1119. #  ======================
  1120. #
  1121. #  Privoxy has a number of options specific to the Windows GUI
  1122. #  interface:
  1123. #
  1124.  
  1125. #  If "activity-animation" is set to 1, the Privoxy icon will animate
  1126. #  when "Privoxy" is active. To turn off, set to 0.
  1127. #
  1128. #activity-animation   1
  1129.  
  1130. #  If "log-messages" is set to 1, Privoxy will log messages to the
  1131. #  console window:
  1132. #
  1133. log-messages   1
  1134.  
  1135. #  If "log-buffer-size" is set to 1, the size of the log buffer,
  1136. #  i.e. the amount of memory used for the log messages displayed in
  1137. #  the console window, will be limited to "log-max-lines" (see below).
  1138. #
  1139. #  Warning: Setting this to 0 will result in the buffer to grow
  1140. #  infinitely and eat up all your memory!
  1141. #
  1142. #log-buffer-size 1
  1143.  
  1144. #  log-max-lines is the maximum number of lines held in the log
  1145. #  buffer. See above.
  1146. #
  1147. #log-max-lines 200
  1148.  
  1149. #  If "log-highlight-messages" is set to 1, Privoxy will highlight
  1150. #  portions of the log messages with a bold-faced font:
  1151. #
  1152. #log-highlight-messages 1
  1153.  
  1154. #  The font used in the console window:
  1155. #
  1156. #log-font-name Comic Sans MS
  1157.  
  1158. #  Font size used in the console window:
  1159. #
  1160. #log-font-size 8
  1161.  
  1162. #  "show-on-task-bar" controls whether or not Privoxy will appear as
  1163. #  a button on the Task bar when minimized:
  1164. #
  1165. #show-on-task-bar 0
  1166.  
  1167. #  If "close-button-minimizes" is set to 1, the Windows close button
  1168. #  will minimize Privoxy instead of closing the program (close with
  1169. #  the exit option on the File menu).
  1170. #
  1171. #close-button-minimizes 1
  1172.  
  1173. #  The "hide-console" option is specific to the MS-Win console version
  1174. #  of Privoxy.  If this option is used, Privoxy will disconnect from
  1175. #  and hide the command console.
  1176. #
  1177. #hide-console
  1178.  
  1179. #
  1180.